package com.heys.generic;


public class Pear2 extends FruitAb implements PrintFruitName {

	private final String name ="大鸭梨";
	private String secName;
	public  Pear2(String secName) {
		this.secName = secName;
	}
	@Override
	public String getName() {
		
		return String.format("%s:%s", this.name,this.secName);
	}
	@Override
	public void printName() {
		
		System.out.println(this.getName());
	}

}
